import request from '@/utils/request'

export const systemGetUserList = (data: any) =>
  request({
    url: '/user/list',
    method: 'post',
    data
  })

export const systemCreateUser = (data: any) =>
  request({
    url: '/user/create',
    method: 'post',
    data
  })
export const systemModifyUser = (data: any) =>
  request({
    url: '/user/modify',
    method: 'post',
    data
  })

export const systemGetSystemList = () =>
  request({
    url: '/system/list',
    method: 'post'
  })
// 创建系统
export const systemCreateSystem = (data: any) =>
  request({
    url: '/system/create',
    method: 'post',
    data
  })
// 删除系统
export const systemDeleteSystem = (data: any) =>
  request({
    url: '/system/delete',
    method: 'post',
    data
  })

// 修改系统
export const systemModifySystem = (data: any) =>
  request({
    url: '/system/update',
    method: 'post',
    data
  })
// 系统详情
export const getSystemDetail = (data: any) =>
  request({
    url: '/system/view',
    method: 'post',
    data
  })
// 生成密钥
export const systemGenerateSecret = (data: any) =>
  request({
    url: '/system/generate-secret',
    method: 'post',
    data
  })
// 删除密钥
export const systemDeleteSecret = (data: any) =>
  request({
    url: '/system/delete-secret',
    method: 'post',
    data
  })
